package com.itheima.youdianda.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class YddCate implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String catename;

    //字段图标
    private String icon;

    //排序数字
    private Integer sortNum;

    private String sort_num;

    //是否为默认字段,1表示是,null表示不是
    private String defaultData;

    //分类下文章数量
    @TableField(exist = false)
    private Integer num;

    //总条目数
    @TableField(exist = false)
    private Integer count;

    //页数
    @TableField(exist = false)
    private Integer totalPages;

    //分页条目数
    @TableField(exist = false)
    private Integer pageSize;

    //当前页
    @TableField(exist = false)
    private Integer currentPage;
}
